import 'package:seedfour/generated/json/base/json_convert_content.dart';
import 'package:seedfour/app/models/statistics_entity.dart';

StatisticsEntity $StatisticsEntityFromJson(Map<String, dynamic> json) {
  final StatisticsEntity statisticsEntity = StatisticsEntity();
  final String? incomeAmount = jsonConvert.convert<String>(
      json['incomeAmount']);
  if (incomeAmount != null) {
    statisticsEntity.incomeAmount = incomeAmount;
  }
  final String? allocAmount = jsonConvert.convert<String>(json['allocAmount']);
  if (allocAmount != null) {
    statisticsEntity.allocAmount = allocAmount;
  }
  final String? expendAmount = jsonConvert.convert<String>(
      json['expendAmount']);
  if (expendAmount != null) {
    statisticsEntity.expendAmount = expendAmount;
  }
  final StatisticsSumYear? sumYear = jsonConvert.convert<StatisticsSumYear>(
      json['sumYear']);
  if (sumYear != null) {
    statisticsEntity.sumYear = sumYear;
  }
  final StatisticsCurMonth? curMonth = jsonConvert.convert<StatisticsCurMonth>(
      json['curMonth']);
  if (curMonth != null) {
    statisticsEntity.curMonth = curMonth;
  }
  final StatisticsLastMonth? lastMonth = jsonConvert.convert<
      StatisticsLastMonth>(json['lastMonth']);
  if (lastMonth != null) {
    statisticsEntity.lastMonth = lastMonth;
  }
  final StatisticsIncomeData? incomeData = jsonConvert.convert<
      StatisticsIncomeData>(json['incomeData']);
  if (incomeData != null) {
    statisticsEntity.incomeData = incomeData;
  }
  final StatisticsExpendData? expendData = jsonConvert.convert<
      StatisticsExpendData>(json['expendData']);
  if (expendData != null) {
    statisticsEntity.expendData = expendData;
  }
  final StatisticsAllocData? allocData = jsonConvert.convert<
      StatisticsAllocData>(json['allocData']);
  if (allocData != null) {
    statisticsEntity.allocData = allocData;
  }
  return statisticsEntity;
}

Map<String, dynamic> $StatisticsEntityToJson(StatisticsEntity entity) {
  final Map<String, dynamic> data = <String, dynamic>{};
  data['incomeAmount'] = entity.incomeAmount;
  data['allocAmount'] = entity.allocAmount;
  data['expendAmount'] = entity.expendAmount;
  data['sumYear'] = entity.sumYear?.toJson();
  data['curMonth'] = entity.curMonth?.toJson();
  data['lastMonth'] = entity.lastMonth?.toJson();
  data['incomeData'] = entity.incomeData?.toJson();
  data['expendData'] = entity.expendData?.toJson();
  data['allocData'] = entity.allocData?.toJson();
  return data;
}

extension StatisticsEntityExtension on StatisticsEntity {
  StatisticsEntity copyWith({
    String? incomeAmount,
    String? allocAmount,
    String? expendAmount,
    StatisticsSumYear? sumYear,
    StatisticsCurMonth? curMonth,
    StatisticsLastMonth? lastMonth,
    StatisticsIncomeData? incomeData,
    StatisticsExpendData? expendData,
    StatisticsAllocData? allocData,
  }) {
    return StatisticsEntity()
      ..incomeAmount = incomeAmount ?? this.incomeAmount
      ..allocAmount = allocAmount ?? this.allocAmount
      ..expendAmount = expendAmount ?? this.expendAmount
      ..sumYear = sumYear ?? this.sumYear
      ..curMonth = curMonth ?? this.curMonth
      ..lastMonth = lastMonth ?? this.lastMonth
      ..incomeData = incomeData ?? this.incomeData
      ..expendData = expendData ?? this.expendData
      ..allocData = allocData ?? this.allocData;
  }
}

StatisticsSumYear $StatisticsSumYearFromJson(Map<String, dynamic> json) {
  final StatisticsSumYear statisticsSumYear = StatisticsSumYear();
  final String? incomeTotal = jsonConvert.convert<String>(json['incomeTotal']);
  if (incomeTotal != null) {
    statisticsSumYear.incomeTotal = incomeTotal;
  }
  final String? expendTotal = jsonConvert.convert<String>(json['expendTotal']);
  if (expendTotal != null) {
    statisticsSumYear.expendTotal = expendTotal;
  }
  final String? incomeMonthRate = jsonConvert.convert<String>(
      json['incomeMonthRate']);
  if (incomeMonthRate != null) {
    statisticsSumYear.incomeMonthRate = incomeMonthRate;
  }
  final String? expendMonthRate = jsonConvert.convert<String>(
      json['expendMonthRate']);
  if (expendMonthRate != null) {
    statisticsSumYear.expendMonthRate = expendMonthRate;
  }
  final StatisticsSumYearExpendDetail? expendDetail = jsonConvert.convert<
      StatisticsSumYearExpendDetail>(json['expendDetail']);
  if (expendDetail != null) {
    statisticsSumYear.expendDetail = expendDetail;
  }
  final String? allocTotal = jsonConvert.convert<String>(json['allocTotal']);
  if (allocTotal != null) {
    statisticsSumYear.allocTotal = allocTotal;
  }
  final String? allocMonthRate = jsonConvert.convert<String>(
      json['allocMonthRate']);
  if (allocMonthRate != null) {
    statisticsSumYear.allocMonthRate = allocMonthRate;
  }
  final String? rtEffect = jsonConvert.convert<String>(json['rtEffect']);
  if (rtEffect != null) {
    statisticsSumYear.rtEffect = rtEffect;
  }
  return statisticsSumYear;
}

Map<String, dynamic> $StatisticsSumYearToJson(StatisticsSumYear entity) {
  final Map<String, dynamic> data = <String, dynamic>{};
  data['incomeTotal'] = entity.incomeTotal;
  data['expendTotal'] = entity.expendTotal;
  data['incomeMonthRate'] = entity.incomeMonthRate;
  data['expendMonthRate'] = entity.expendMonthRate;
  data['expendDetail'] = entity.expendDetail?.toJson();
  data['allocTotal'] = entity.allocTotal;
  data['allocMonthRate'] = entity.allocMonthRate;
  data['rtEffect'] = entity.rtEffect;
  return data;
}

extension StatisticsSumYearExtension on StatisticsSumYear {
  StatisticsSumYear copyWith({
    String? incomeTotal,
    String? expendTotal,
    String? incomeMonthRate,
    String? expendMonthRate,
    StatisticsSumYearExpendDetail? expendDetail,
    String? allocTotal,
    String? allocMonthRate,
    String? rtEffect,
  }) {
    return StatisticsSumYear()
      ..incomeTotal = incomeTotal ?? this.incomeTotal
      ..expendTotal = expendTotal ?? this.expendTotal
      ..incomeMonthRate = incomeMonthRate ?? this.incomeMonthRate
      ..expendMonthRate = expendMonthRate ?? this.expendMonthRate
      ..expendDetail = expendDetail ?? this.expendDetail
      ..allocTotal = allocTotal ?? this.allocTotal
      ..allocMonthRate = allocMonthRate ?? this.allocMonthRate
      ..rtEffect = rtEffect ?? this.rtEffect;
  }
}

StatisticsSumYearExpendDetail $StatisticsSumYearExpendDetailFromJson(
    Map<String, dynamic> json) {
  final StatisticsSumYearExpendDetail statisticsSumYearExpendDetail = StatisticsSumYearExpendDetail();
  final int? salary = jsonConvert.convert<int>(json['salary']);
  if (salary != null) {
    statisticsSumYearExpendDetail.salary = salary;
  }
  final int? consume = jsonConvert.convert<int>(json['consume']);
  if (consume != null) {
    statisticsSumYearExpendDetail.consume = consume;
  }
  final int? govfee = jsonConvert.convert<int>(json['govfee']);
  if (govfee != null) {
    statisticsSumYearExpendDetail.govfee = govfee;
  }
  final int? remit = jsonConvert.convert<int>(json['remit']);
  if (remit != null) {
    statisticsSumYearExpendDetail.remit = remit;
  }
  final int? office = jsonConvert.convert<int>(json['office']);
  if (office != null) {
    statisticsSumYearExpendDetail.office = office;
  }
  final double? transfer = jsonConvert.convert<double>(json['transfer']);
  if (transfer != null) {
    statisticsSumYearExpendDetail.transfer = transfer;
  }
  final int? other = jsonConvert.convert<int>(json['other']);
  if (other != null) {
    statisticsSumYearExpendDetail.other = other;
  }
  return statisticsSumYearExpendDetail;
}

Map<String, dynamic> $StatisticsSumYearExpendDetailToJson(
    StatisticsSumYearExpendDetail entity) {
  final Map<String, dynamic> data = <String, dynamic>{};
  data['salary'] = entity.salary;
  data['consume'] = entity.consume;
  data['govfee'] = entity.govfee;
  data['remit'] = entity.remit;
  data['office'] = entity.office;
  data['transfer'] = entity.transfer;
  data['other'] = entity.other;
  return data;
}

extension StatisticsSumYearExpendDetailExtension on StatisticsSumYearExpendDetail {
  StatisticsSumYearExpendDetail copyWith({
    int? salary,
    int? consume,
    int? govfee,
    int? remit,
    int? office,
    double? transfer,
    int? other,
  }) {
    return StatisticsSumYearExpendDetail()
      ..salary = salary ?? this.salary
      ..consume = consume ?? this.consume
      ..govfee = govfee ?? this.govfee
      ..remit = remit ?? this.remit
      ..office = office ?? this.office
      ..transfer = transfer ?? this.transfer
      ..other = other ?? this.other;
  }
}

StatisticsCurMonth $StatisticsCurMonthFromJson(Map<String, dynamic> json) {
  final StatisticsCurMonth statisticsCurMonth = StatisticsCurMonth();
  final String? incomeTotal = jsonConvert.convert<String>(json['incomeTotal']);
  if (incomeTotal != null) {
    statisticsCurMonth.incomeTotal = incomeTotal;
  }
  final String? expendTotal = jsonConvert.convert<String>(json['expendTotal']);
  if (expendTotal != null) {
    statisticsCurMonth.expendTotal = expendTotal;
  }
  final String? incomeMonthRate = jsonConvert.convert<String>(
      json['incomeMonthRate']);
  if (incomeMonthRate != null) {
    statisticsCurMonth.incomeMonthRate = incomeMonthRate;
  }
  final String? incomeYearRate = jsonConvert.convert<String>(
      json['incomeYearRate']);
  if (incomeYearRate != null) {
    statisticsCurMonth.incomeYearRate = incomeYearRate;
  }
  final String? expendMonthRate = jsonConvert.convert<String>(
      json['expendMonthRate']);
  if (expendMonthRate != null) {
    statisticsCurMonth.expendMonthRate = expendMonthRate;
  }
  final String? expendYearRate = jsonConvert.convert<String>(
      json['expendYearRate']);
  if (expendYearRate != null) {
    statisticsCurMonth.expendYearRate = expendYearRate;
  }
  final StatisticsCurMonthExpendDetail? expendDetail = jsonConvert.convert<
      StatisticsCurMonthExpendDetail>(json['expendDetail']);
  if (expendDetail != null) {
    statisticsCurMonth.expendDetail = expendDetail;
  }
  final String? allocTotal = jsonConvert.convert<String>(json['allocTotal']);
  if (allocTotal != null) {
    statisticsCurMonth.allocTotal = allocTotal;
  }
  final String? allocMonthRate = jsonConvert.convert<String>(
      json['allocMonthRate']);
  if (allocMonthRate != null) {
    statisticsCurMonth.allocMonthRate = allocMonthRate;
  }
  final String? allocYearRate = jsonConvert.convert<String>(
      json['allocYearRate']);
  if (allocYearRate != null) {
    statisticsCurMonth.allocYearRate = allocYearRate;
  }
  final String? monthEffect = jsonConvert.convert<String>(json['monthEffect']);
  if (monthEffect != null) {
    statisticsCurMonth.monthEffect = monthEffect;
  }
  return statisticsCurMonth;
}

Map<String, dynamic> $StatisticsCurMonthToJson(StatisticsCurMonth entity) {
  final Map<String, dynamic> data = <String, dynamic>{};
  data['incomeTotal'] = entity.incomeTotal;
  data['expendTotal'] = entity.expendTotal;
  data['incomeMonthRate'] = entity.incomeMonthRate;
  data['incomeYearRate'] = entity.incomeYearRate;
  data['expendMonthRate'] = entity.expendMonthRate;
  data['expendYearRate'] = entity.expendYearRate;
  data['expendDetail'] = entity.expendDetail?.toJson();
  data['allocTotal'] = entity.allocTotal;
  data['allocMonthRate'] = entity.allocMonthRate;
  data['allocYearRate'] = entity.allocYearRate;
  data['monthEffect'] = entity.monthEffect;
  return data;
}

extension StatisticsCurMonthExtension on StatisticsCurMonth {
  StatisticsCurMonth copyWith({
    String? incomeTotal,
    String? expendTotal,
    String? incomeMonthRate,
    String? incomeYearRate,
    String? expendMonthRate,
    String? expendYearRate,
    StatisticsCurMonthExpendDetail? expendDetail,
    String? allocTotal,
    String? allocMonthRate,
    String? allocYearRate,
    String? monthEffect,
  }) {
    return StatisticsCurMonth()
      ..incomeTotal = incomeTotal ?? this.incomeTotal
      ..expendTotal = expendTotal ?? this.expendTotal
      ..incomeMonthRate = incomeMonthRate ?? this.incomeMonthRate
      ..incomeYearRate = incomeYearRate ?? this.incomeYearRate
      ..expendMonthRate = expendMonthRate ?? this.expendMonthRate
      ..expendYearRate = expendYearRate ?? this.expendYearRate
      ..expendDetail = expendDetail ?? this.expendDetail
      ..allocTotal = allocTotal ?? this.allocTotal
      ..allocMonthRate = allocMonthRate ?? this.allocMonthRate
      ..allocYearRate = allocYearRate ?? this.allocYearRate
      ..monthEffect = monthEffect ?? this.monthEffect;
  }
}

StatisticsCurMonthExpendDetail $StatisticsCurMonthExpendDetailFromJson(
    Map<String, dynamic> json) {
  final StatisticsCurMonthExpendDetail statisticsCurMonthExpendDetail = StatisticsCurMonthExpendDetail();
  final int? salary = jsonConvert.convert<int>(json['salary']);
  if (salary != null) {
    statisticsCurMonthExpendDetail.salary = salary;
  }
  final int? consume = jsonConvert.convert<int>(json['consume']);
  if (consume != null) {
    statisticsCurMonthExpendDetail.consume = consume;
  }
  final int? govfee = jsonConvert.convert<int>(json['govfee']);
  if (govfee != null) {
    statisticsCurMonthExpendDetail.govfee = govfee;
  }
  final int? remit = jsonConvert.convert<int>(json['remit']);
  if (remit != null) {
    statisticsCurMonthExpendDetail.remit = remit;
  }
  final int? office = jsonConvert.convert<int>(json['office']);
  if (office != null) {
    statisticsCurMonthExpendDetail.office = office;
  }
  final double? transfer = jsonConvert.convert<double>(json['transfer']);
  if (transfer != null) {
    statisticsCurMonthExpendDetail.transfer = transfer;
  }
  final int? other = jsonConvert.convert<int>(json['other']);
  if (other != null) {
    statisticsCurMonthExpendDetail.other = other;
  }
  return statisticsCurMonthExpendDetail;
}

Map<String, dynamic> $StatisticsCurMonthExpendDetailToJson(
    StatisticsCurMonthExpendDetail entity) {
  final Map<String, dynamic> data = <String, dynamic>{};
  data['salary'] = entity.salary;
  data['consume'] = entity.consume;
  data['govfee'] = entity.govfee;
  data['remit'] = entity.remit;
  data['office'] = entity.office;
  data['transfer'] = entity.transfer;
  data['other'] = entity.other;
  return data;
}

extension StatisticsCurMonthExpendDetailExtension on StatisticsCurMonthExpendDetail {
  StatisticsCurMonthExpendDetail copyWith({
    int? salary,
    int? consume,
    int? govfee,
    int? remit,
    int? office,
    double? transfer,
    int? other,
  }) {
    return StatisticsCurMonthExpendDetail()
      ..salary = salary ?? this.salary
      ..consume = consume ?? this.consume
      ..govfee = govfee ?? this.govfee
      ..remit = remit ?? this.remit
      ..office = office ?? this.office
      ..transfer = transfer ?? this.transfer
      ..other = other ?? this.other;
  }
}

StatisticsLastMonth $StatisticsLastMonthFromJson(Map<String, dynamic> json) {
  final StatisticsLastMonth statisticsLastMonth = StatisticsLastMonth();
  final String? incomeTotal = jsonConvert.convert<String>(json['incomeTotal']);
  if (incomeTotal != null) {
    statisticsLastMonth.incomeTotal = incomeTotal;
  }
  final String? expendTotal = jsonConvert.convert<String>(json['expendTotal']);
  if (expendTotal != null) {
    statisticsLastMonth.expendTotal = expendTotal;
  }
  final String? incomeMonthRate = jsonConvert.convert<String>(
      json['incomeMonthRate']);
  if (incomeMonthRate != null) {
    statisticsLastMonth.incomeMonthRate = incomeMonthRate;
  }
  final String? incomeYearRate = jsonConvert.convert<String>(
      json['incomeYearRate']);
  if (incomeYearRate != null) {
    statisticsLastMonth.incomeYearRate = incomeYearRate;
  }
  final String? expendMonthRate = jsonConvert.convert<String>(
      json['expendMonthRate']);
  if (expendMonthRate != null) {
    statisticsLastMonth.expendMonthRate = expendMonthRate;
  }
  final String? expendYearRate = jsonConvert.convert<String>(
      json['expendYearRate']);
  if (expendYearRate != null) {
    statisticsLastMonth.expendYearRate = expendYearRate;
  }
  final StatisticsLastMonthExpendDetail? expendDetail = jsonConvert.convert<
      StatisticsLastMonthExpendDetail>(json['expendDetail']);
  if (expendDetail != null) {
    statisticsLastMonth.expendDetail = expendDetail;
  }
  final String? allocTotal = jsonConvert.convert<String>(json['allocTotal']);
  if (allocTotal != null) {
    statisticsLastMonth.allocTotal = allocTotal;
  }
  final String? allocMonthRate = jsonConvert.convert<String>(
      json['allocMonthRate']);
  if (allocMonthRate != null) {
    statisticsLastMonth.allocMonthRate = allocMonthRate;
  }
  final String? allocYearRate = jsonConvert.convert<String>(
      json['allocYearRate']);
  if (allocYearRate != null) {
    statisticsLastMonth.allocYearRate = allocYearRate;
  }
  final String? monthEffect = jsonConvert.convert<String>(json['monthEffect']);
  if (monthEffect != null) {
    statisticsLastMonth.monthEffect = monthEffect;
  }
  return statisticsLastMonth;
}

Map<String, dynamic> $StatisticsLastMonthToJson(StatisticsLastMonth entity) {
  final Map<String, dynamic> data = <String, dynamic>{};
  data['incomeTotal'] = entity.incomeTotal;
  data['expendTotal'] = entity.expendTotal;
  data['incomeMonthRate'] = entity.incomeMonthRate;
  data['incomeYearRate'] = entity.incomeYearRate;
  data['expendMonthRate'] = entity.expendMonthRate;
  data['expendYearRate'] = entity.expendYearRate;
  data['expendDetail'] = entity.expendDetail?.toJson();
  data['allocTotal'] = entity.allocTotal;
  data['allocMonthRate'] = entity.allocMonthRate;
  data['allocYearRate'] = entity.allocYearRate;
  data['monthEffect'] = entity.monthEffect;
  return data;
}

extension StatisticsLastMonthExtension on StatisticsLastMonth {
  StatisticsLastMonth copyWith({
    String? incomeTotal,
    String? expendTotal,
    String? incomeMonthRate,
    String? incomeYearRate,
    String? expendMonthRate,
    String? expendYearRate,
    StatisticsLastMonthExpendDetail? expendDetail,
    String? allocTotal,
    String? allocMonthRate,
    String? allocYearRate,
    String? monthEffect,
  }) {
    return StatisticsLastMonth()
      ..incomeTotal = incomeTotal ?? this.incomeTotal
      ..expendTotal = expendTotal ?? this.expendTotal
      ..incomeMonthRate = incomeMonthRate ?? this.incomeMonthRate
      ..incomeYearRate = incomeYearRate ?? this.incomeYearRate
      ..expendMonthRate = expendMonthRate ?? this.expendMonthRate
      ..expendYearRate = expendYearRate ?? this.expendYearRate
      ..expendDetail = expendDetail ?? this.expendDetail
      ..allocTotal = allocTotal ?? this.allocTotal
      ..allocMonthRate = allocMonthRate ?? this.allocMonthRate
      ..allocYearRate = allocYearRate ?? this.allocYearRate
      ..monthEffect = monthEffect ?? this.monthEffect;
  }
}

StatisticsLastMonthExpendDetail $StatisticsLastMonthExpendDetailFromJson(
    Map<String, dynamic> json) {
  final StatisticsLastMonthExpendDetail statisticsLastMonthExpendDetail = StatisticsLastMonthExpendDetail();
  final int? salary = jsonConvert.convert<int>(json['salary']);
  if (salary != null) {
    statisticsLastMonthExpendDetail.salary = salary;
  }
  final int? consume = jsonConvert.convert<int>(json['consume']);
  if (consume != null) {
    statisticsLastMonthExpendDetail.consume = consume;
  }
  final int? govfee = jsonConvert.convert<int>(json['govfee']);
  if (govfee != null) {
    statisticsLastMonthExpendDetail.govfee = govfee;
  }
  final int? remit = jsonConvert.convert<int>(json['remit']);
  if (remit != null) {
    statisticsLastMonthExpendDetail.remit = remit;
  }
  final int? office = jsonConvert.convert<int>(json['office']);
  if (office != null) {
    statisticsLastMonthExpendDetail.office = office;
  }
  final int? transfer = jsonConvert.convert<int>(json['transfer']);
  if (transfer != null) {
    statisticsLastMonthExpendDetail.transfer = transfer;
  }
  final int? other = jsonConvert.convert<int>(json['other']);
  if (other != null) {
    statisticsLastMonthExpendDetail.other = other;
  }
  return statisticsLastMonthExpendDetail;
}

Map<String, dynamic> $StatisticsLastMonthExpendDetailToJson(
    StatisticsLastMonthExpendDetail entity) {
  final Map<String, dynamic> data = <String, dynamic>{};
  data['salary'] = entity.salary;
  data['consume'] = entity.consume;
  data['govfee'] = entity.govfee;
  data['remit'] = entity.remit;
  data['office'] = entity.office;
  data['transfer'] = entity.transfer;
  data['other'] = entity.other;
  return data;
}

extension StatisticsLastMonthExpendDetailExtension on StatisticsLastMonthExpendDetail {
  StatisticsLastMonthExpendDetail copyWith({
    int? salary,
    int? consume,
    int? govfee,
    int? remit,
    int? office,
    int? transfer,
    int? other,
  }) {
    return StatisticsLastMonthExpendDetail()
      ..salary = salary ?? this.salary
      ..consume = consume ?? this.consume
      ..govfee = govfee ?? this.govfee
      ..remit = remit ?? this.remit
      ..office = office ?? this.office
      ..transfer = transfer ?? this.transfer
      ..other = other ?? this.other;
  }
}

StatisticsIncomeData $StatisticsIncomeDataFromJson(Map<String, dynamic> json) {
  final StatisticsIncomeData statisticsIncomeData = StatisticsIncomeData();
  final List<int>? value = (json['value'] as List<dynamic>?)?.map(
          (e) => jsonConvert.convert<int>(e) as int).toList();
  if (value != null) {
    statisticsIncomeData.value = value;
  }
  final List<int>? yearRate = (json['yearRate'] as List<dynamic>?)?.map(
          (e) => jsonConvert.convert<int>(e) as int).toList();
  if (yearRate != null) {
    statisticsIncomeData.yearRate = yearRate;
  }
  final List<int>? monthRate = (json['monthRate'] as List<dynamic>?)?.map(
          (e) => jsonConvert.convert<int>(e) as int).toList();
  if (monthRate != null) {
    statisticsIncomeData.monthRate = monthRate;
  }
  final List<int>? monthEffect = (json['monthEffect'] as List<dynamic>?)?.map(
          (e) => jsonConvert.convert<int>(e) as int).toList();
  if (monthEffect != null) {
    statisticsIncomeData.monthEffect = monthEffect;
  }
  return statisticsIncomeData;
}

Map<String, dynamic> $StatisticsIncomeDataToJson(StatisticsIncomeData entity) {
  final Map<String, dynamic> data = <String, dynamic>{};
  data['value'] = entity.value;
  data['yearRate'] = entity.yearRate;
  data['monthRate'] = entity.monthRate;
  data['monthEffect'] = entity.monthEffect;
  return data;
}

extension StatisticsIncomeDataExtension on StatisticsIncomeData {
  StatisticsIncomeData copyWith({
    List<int>? value,
    List<int>? yearRate,
    List<int>? monthRate,
    List<int>? monthEffect,
  }) {
    return StatisticsIncomeData()
      ..value = value ?? this.value
      ..yearRate = yearRate ?? this.yearRate
      ..monthRate = monthRate ?? this.monthRate
      ..monthEffect = monthEffect ?? this.monthEffect;
  }
}

StatisticsExpendData $StatisticsExpendDataFromJson(Map<String, dynamic> json) {
  final StatisticsExpendData statisticsExpendData = StatisticsExpendData();
  final List<int>? value = (json['value'] as List<dynamic>?)?.map(
          (e) => jsonConvert.convert<int>(e) as int).toList();
  if (value != null) {
    statisticsExpendData.value = value;
  }
  final List<int>? yearRate = (json['yearRate'] as List<dynamic>?)?.map(
          (e) => jsonConvert.convert<int>(e) as int).toList();
  if (yearRate != null) {
    statisticsExpendData.yearRate = yearRate;
  }
  final List<int>? monthRate = (json['monthRate'] as List<dynamic>?)?.map(
          (e) => jsonConvert.convert<int>(e) as int).toList();
  if (monthRate != null) {
    statisticsExpendData.monthRate = monthRate;
  }
  return statisticsExpendData;
}

Map<String, dynamic> $StatisticsExpendDataToJson(StatisticsExpendData entity) {
  final Map<String, dynamic> data = <String, dynamic>{};
  data['value'] = entity.value;
  data['yearRate'] = entity.yearRate;
  data['monthRate'] = entity.monthRate;
  return data;
}

extension StatisticsExpendDataExtension on StatisticsExpendData {
  StatisticsExpendData copyWith({
    List<int>? value,
    List<int>? yearRate,
    List<int>? monthRate,
  }) {
    return StatisticsExpendData()
      ..value = value ?? this.value
      ..yearRate = yearRate ?? this.yearRate
      ..monthRate = monthRate ?? this.monthRate;
  }
}

StatisticsAllocData $StatisticsAllocDataFromJson(Map<String, dynamic> json) {
  final StatisticsAllocData statisticsAllocData = StatisticsAllocData();
  final List<int>? value = (json['value'] as List<dynamic>?)?.map(
          (e) => jsonConvert.convert<int>(e) as int).toList();
  if (value != null) {
    statisticsAllocData.value = value;
  }
  final List<int>? yearRate = (json['yearRate'] as List<dynamic>?)?.map(
          (e) => jsonConvert.convert<int>(e) as int).toList();
  if (yearRate != null) {
    statisticsAllocData.yearRate = yearRate;
  }
  final List<int>? monthRate = (json['monthRate'] as List<dynamic>?)?.map(
          (e) => jsonConvert.convert<int>(e) as int).toList();
  if (monthRate != null) {
    statisticsAllocData.monthRate = monthRate;
  }
  return statisticsAllocData;
}

Map<String, dynamic> $StatisticsAllocDataToJson(StatisticsAllocData entity) {
  final Map<String, dynamic> data = <String, dynamic>{};
  data['value'] = entity.value;
  data['yearRate'] = entity.yearRate;
  data['monthRate'] = entity.monthRate;
  return data;
}

extension StatisticsAllocDataExtension on StatisticsAllocData {
  StatisticsAllocData copyWith({
    List<int>? value,
    List<int>? yearRate,
    List<int>? monthRate,
  }) {
    return StatisticsAllocData()
      ..value = value ?? this.value
      ..yearRate = yearRate ?? this.yearRate
      ..monthRate = monthRate ?? this.monthRate;
  }
}